<?php
App::uses('AppModel', 'Model');
/**
 * DeclencheAjoutLigne Model
 *
 * @property reponse $reponse
 * @property ajoutligne $ajoutligne
 */
class DeclencheAjoutLigne extends AppModel {
	function ajouter($id_reponse, $id_ajout_ligne) {
		$this->query("INSERT INTO declenche_ajout_lignes (id_reponse, id_ajout_ligne) VALUES (".$id_reponse.", ".$id_ajout_ligne.")");
	}
/**
 * Primary key field
 *
 * @var string
 */
	public $primaryKey = 'id_reponse';

	//The Associations below have been created with all possible keys, those that are not needed can be removed

/**
 * hasOne associations
 *
 * @var array
 */
	public $hasOne = array(
		'reponse' => array(
			'className' => 'reponse',
			'foreignKey' => 'id_reponse',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'ajoutligne' => array(
			'className' => 'ajoutligne',
			'foreignKey' => 'id_ajout_ligne',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);
}
